package com.css.dzj.dzjap.modules.info.mapper;

import com.css.dzj.dzjap.modules.info.entity.ApExpertEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.querydsl.QuerydslPredicateExecutor;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ExpertMapper extends JpaRepository<ApExpertEntity, String>, JpaSpecificationExecutor<ApExpertEntity>,
        QuerydslPredicateExecutor<ApExpertEntity> {
    /*@Query(nativeQuery = true,value = "select * from AP_EXPERT a where a.EXPERT_LEVL=:level")
    List<ApExpertEntity> listExpert(@Param("level") String level);*/
}
